<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--头部导航栏-->
<div th:fragment="topbar">
    <div class="head ding">
        <div class="wrapper clearfix">
            <div class="clearfix" id="top">
                <h1 class="fl"><a href="index"><img src="../../img/temp/logo2.png"/></a></h1>
                <div class="fr clearfix" id="top1">
                    <p class="fl">
                        <a href="login" id="login">登录</a>
                        <a href="reg" id="reg">注册</a>
                    </p>
                    <form th:action="@{/front/search}" th:method="post" enctype="multipart/form-data" class="fl">
                        <input type="text" th:id="search" th:name="search" placeholder="搜索" />
                        <input type="submit" value=""/>
                    </form>
                    <div class="btn fl clearfix">
                        <a href="mygxin"><img src="../../img/grzx.png"/></a>
                        <a href="#" class="er1"><img src="../../img/ewm.png"/></a>
                        <a href="cart"><img src="../../img/gwc.png"/></a>
                        <p><a href="#"><img src="../../img/smewm.png"/></a></p>
                    </div>
                </div>
            </div>
            <ul class="clearfix" id="bott">
                <li><a href="index">首页</a></li>
                <li>
                    <a href="#">所有商品</a>
                    <div class="sList">
                        <div class="wrapper  clearfix">
                            <a th:each="category,categoryStat:${category}" th:href="@{/front/getcategory(categoryId=${category.categoryId},sort='排序方式')}">
                                <dl>
                                    <dt><img th:src="@{'/files/test/pic/'+${category.photo}}"/></dt>
                                    <dd th:text="${category.name}"></dd>
                                </dl>
                            </a>
                        </div>
                    </div>
                </li>
                <li th:each="category,categoryStat:${category}">
                    <a th:href="@{/front/getcategory(categoryId=${category.categoryId},sort='排序方式')}">
                        <span th:text="${category.name}"></span>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>







</body>
</html>